<template>
<div class="navbar">
  <van-nav-bar>
    <template #title>
      <div class="title">消息</div>
    </template>
  </van-nav-bar>
</div>
</template>

<script>
import Vue from 'vue';
import { NavBar } from 'vant';

Vue.use(NavBar);
export default {
  name: "navbar"
}
</script>

<style scoped>
.van-nav-bar{
  background-color: #FAFAFA;
}
.title{
  font-size: .5rem;
}
</style>